package com.gupaoedu.task.factory.factorymethod;

import com.gupaoedu.task.factory.IBrand;

/**
 * @author djl
 * @Title: FactoryMethodTest
 * @Description: TODO
 * @date 2019/3/28
 */
public class FactoryMethodTest {
    public static void main(String[] args) {
        IBrandFactory factory=new HaierFactory() ;
        IBrand brand=factory.create();
        brand.tv();

        factory=new HisenseFactory();
        brand=factory.create();
        brand.tv();

    }
}
